package com.liumulingyu.dao;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 */
@Repository
public class UserDao {
    private final String NAME_SPACE = "com.liumulingyu.dao.user.";
    @Autowired
    private SqlSessionTemplate sqlSessionTemplate;
    /**
     * 获取会员列表
     * @return
     */
    public List<Map<String,Object>> getUserList() {
        return sqlSessionTemplate.selectList(NAME_SPACE + "getUserList");
    }

}
